package com.example.yuhuaqiu.myqq;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.example.yuhuaqiu.util.Global;

public class PersonActivity extends AppCompatActivity {

    private TextView tv;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.page_person);

        tv =(TextView) findViewById(R.id.pv_tv);
        tv.setText(Global.setName);
    }

    public void backfun(View view) {
        Intent intent = new Intent(PersonActivity.this,TalkActivity.class);
        intent.putExtra("name","隔壁老王");
        startActivity(intent);
        finish();
    }
}
